/**
 ****************************************
 * @file switch_drv_adapter.h
 * @author: AnRui
 * @version 0.1
 * @date  : 2025-11-11
 * @copyright Copyright (c) 2025
 * @desc: 开关驱动适配层
 *        接受中间层发送的信号量  控制风扇和灯光
 *
 * ***************************************
 */
#ifndef _SWITCH_DRV_ADAPTER_H_
#define _SWITCH_DRV_ADAPTER_H_
#include "gd32f30x.h"
#include <stdio.h>
#include <stdbool.h>
#include "mmc.h"
#include "middle.h"
#include "FreeRTOS.h"
#include "task.h"
#include "semphr.h"
#include "switch_drv.h"
#include "total_config.h"

typedef struct {
    bool (*p_switch_open)(void);
    bool (*p_switch_close)(void);
} switch_options_t;

/**
 * @desc  : 开关适配层初始化
 * @date  : 2025-11-11
 * @author: AnRui
 * @note  :
 */
void switch_drv_adapter_init(void);
extern switch_options_t g_switch_fan_options_adapter_api;
extern switch_options_t g_switch_light_options_adapter_api;



#endif
